package com.wuchao.service;

import com.github.pagehelper.PageInfo;
import com.wuchao.pojo.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author wuchao66
 * @Date 2022/9/19 16:59
 * @PackageName:com.wuchao.service
 * @ClassName: UsersService
 * @Description: TODO
 * @Param
 * @Version 1.0
 */

public interface UsersService {
    //模糊查询根据名字
    public List<Users> findUsersByNameConcat(String name);
    public int insertUsersByUsers(Users users);
    //map模糊查询
    public List<Users> findUsersByMapNameConcat(Map map);
    //借用现有表 借一半
    public List<Users> findInfo();
    public List<Users> findUsersAndManByManNameConcat(String name);
    public List<Users> selectUsersAndManByManNameConcat( String name);
    public List<Users> selectfindUsersAndManByManNameConcat(String name);

    //新功能分页，这边来写分页  入参3个，当前页 每页展示数 模糊的名字
    //只有分页需要写法和mapper不同
    public PageInfo<Users>
    findUsersAndManBynameConcatByPage(int currentPage,int pageSize,String name);
    //只有分页需要写法和mapper不同
    public PageInfo<Users>
    findUsersAndTypeBynameConcatByPage(int currentPage,int pageSize,String name);
}
